package com.yitiao.designmodel.behave.observer;

public class MainTest {
    public static void main(String[] args) {
        YitiaoBlogger yitiaoBlogger = new YitiaoBlogger();
        yitiaoBlogger.startLive();
        ZhangSanFan zhangSanFan = new ZhangSanFan();
        LiSiFan liSiFan = new LiSiFan();
        zhangSanFan.followBlogger(yitiaoBlogger);
        liSiFan.followBlogger(yitiaoBlogger);
        System.out.println("living。。。。");
        yitiaoBlogger.endLive();
    }
}
